<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>入库详情</title>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link rel="stylesheet" href="../../../elementUI/index.css">
  <link rel="stylesheet" href="../../../css/index.css">
</head>

<body>
  <div id="app" class="minWidth">
    <el-form :inline="true" :form="form">
      <el-form-item>
        <!-- <el-select v-model.trim="form.Warehouse_Type" clearable @change="onSerach"  placeholder="请选择仓库类型" filterable style="width: 100%">
          <el-option label="自用仓库" value="0"></el-option>
          <el-option label="开放仓库" value="1"></el-option>
        </el-select> -->
      </el-form-item>
      <el-form-item>
        <el-input @change="ChangeInput" v-model="form.Article_Name" placeholder="请输入商品名称"></el-input>
      </el-form-item>
      <el-form-item>
        <el-button @click="onSerach" type="primary">查询</el-button>
      </el-form-item>
    </el-form>
    <el-table :data="tableData" stripe border height="calc(100vh - 140px)" style="width: 100%">
      <el-table-column align="center" label="序号" width="50" type="index"></el-table-column>
      <el-table-column align="center" prop="Warehouse_Name" label="仓库名称"></el-table-column>
      <el-table-column align="center" label="仓库地址">
        <template v-slot="{row}">
            <div :title="row.Warehouse_Address" style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                <span>{{row.Warehouse_Address}}</span>
            </div>
        </template>
      </el-table-column>
      <el-table-column align="center" prop="Warehouse_Type" label="仓库类型">
        <template v-slot="{row}">
          {{row.Warehouse_Type=='0'?'自用仓库':'开放仓库'}}
        </template>
      </el-table-column>
      <el-table-column align="center" label="商品名称">
        <template v-slot="{row}">
            <div :title="row.Article_Name" style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                <span>{{row.Article_Name}}</span>
            </div>
        </template>
      </el-table-column>
      <el-table-column align="center" prop="Receipt_Quantity" label="入库数量"></el-table-column>
      <el-table-column align="center" label="商品所属企业">
        <template v-slot="{row}">
            <div :title="row.Enterprise_Name" style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                <span>{{row.Enterprise_Name}}</span>
            </div>
        </template>
      </el-table-column>
      <el-table-column align="center" label="入库时间">
        <template v-slot="{row}">
            <div :title="row.Receipt_Date" style="width: 100%;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;">
                <span>{{row.Receipt_Date}}</span>
            </div>
        </template>
      </el-table-column>
    </el-table>

    <el-pagination background v-show="total > 0" @size-change="handleSizeChange" @current-change="handleCurrentChange"
      :current-page="form.page" :page-sizes="[10, 20, 30, 50]" :page-size="form.limit"
      layout="total, sizes, prev, pager, next, jumper" :total="total">
    </el-pagination>
  </div>
  <script type="text/javascript" src="../../../js/jquery-3.6.0.min.js"></script>
  <script type="text/javascript" src="../../../js/jquery.cookie.js"></script>
  <script type="text/javascript" src="../../../js/vue.min.js"></script>
  <script type="text/javascript" src="../../../elementUI/index.js"></script>
  <script type="text/javascript" src="../../../js/utils.js"></script>
  <script type="text/javascript" src="./js/InboundDetails.js"></script>
</body>

</html>